<!-- 示例8: 基础加载状态 -->
<template>
  <Table
      :data="[]"
      :columns="columns"
      :loading="true"
      :virtualScroll="true"
  />
</template>

<script setup>
import Table from '@/components/Table/Table.vue'


</script>

<style scoped>
/* 添加容器样式 */
.table-container {
  padding: 20px;
  position: relative;
}

/* 添加头部样式 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.title {
  font-size: 18px;
  font-weight: bold;
  color: #303133;
}

/* 按钮样式 */
button {
  padding: 8px 16px;
  background: var(--empty-action-color, #409eff);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.3s;
}

button:hover {
  opacity: 0.8;
}

/* 可定制的CSS变量 */
.ds-table {
  --empty-text-color: #909399;
  --empty-icon-color: #c0c4cc;
  --empty-action-color: #409eff;
}

.illustration-empty {
  text-align: center;
  padding: 30px 0;
}

.illustration-empty img {
  width: 200px;
  margin-bottom: 16px;
}

.illustration-empty h3 {
  color: #909399;
  font-size: 18px;
  margin-bottom: 8px;
}

.illustration-empty p {
  color: #c0c4cc;
  font-size: 14px;
}
</style>